#ifndef PLAYER
#define PLAYER

#include "Object3D.h"
#include "Bullet.h"
#include "glm.h"

class Player: public Object3D{
	protected:
		int iDirection; // -1= West, 0 = Neutral, 1 = East
		int iLives;		// Amount of lives
		bool bHasShoot;	// Shot a bullet
		GLMmodel* pmodel1;

		// Physics variables
		float fSpeed;
		float fFriction;
		float MAX_SPEED;

	public:
		// Constructor 
		Player();
		Player(std::string strTexturePath);
		//~Player();

		// Main Functions
		void Update(float deltaTime);
		void Draw();
		void Move(float deltaTime);
		Bullet Shoot();
		void Reset();
		void IncreaseLives();
		void DecreaseLives();

		// Setters and Getters
		void SetDirection(int iDirection);
		void SetHasShoot(bool bHasShoot);
		int GetDirection();
		int GetLives();
};

#endif
